<?php $this->renderPartial('../../common/_header');?>
<div class="container my-container">

    <div class="row">
        <div class="col">
            <div class="page-title"> 
                <h1><?php echo $title?></h1>
                <p>Video, clip được xem và chia sẻ nhiều.</p>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col col-lg-9">
            <?php $this->widget('zii.widgets.CListView', array(
                    'id'=>'video-list',
                    'dataProvider'=>$dataProvider,
                    'itemView'=>'_view',
                    'template'=>'{items} {pager}',
                    'pagerCssClass' => 'my-pagination',
                    'ajaxUpdate'=>false,

                    'loadingCssClass' => '',
                    'beforeAjaxUpdate'=>'function(id,options){
                    $("#ajax-loading").fadeIn();    
                    }',
                    'afterAjaxUpdate'=>'function(id,options){
                    $("#ajax-loading").fadeOut();    
                    }',


                    'enablePagination' => true,
                    'pager'=>array(
                        //                        'class'=>'MyLinkPager',
                        'maxButtonCount'    =>  5,
                        'header'            => FALSE, 
                        'htmlOptions' => array(
                            'class' => 'pagination',
                        ),
                        'hiddenPageCssClass' => 'disabled',
                        'selectedPageCssClass' => 'active',

                        //                        'nextPageCssClass' => 'page-next',
                        //                        'firstPageCssClass' => 'page-first',
                        //                        'lastPageCssClass' => 'page-last',
                        //                        'previousPageCssClass' => 'page-prev',

                        'lastPageLabel' => '››',//»
                        'firstPageLabel' => '‹‹',    //«                
                        'prevPageLabel' => '‹',
                        'nextPageLabel' => 'Xem tiếp ›',
                    ),
                ));?>
                <?php $this->renderPartial('../../common/_nextPage')?>  

        </div>
        <div class="col col-lg-3">
            <?php $this->renderPartial('../../common/_sidebar')?>
        </div>
    </div>

</div>

